<?php
/*
 * To change this templates, choose Tools | templatess
 * and open the templates in the editor.
 */
$defaultpath = "./../Desktop/Tubes5Progin/Upload";
include 'process/connect.php';
include 'class/user.php';
include 'process/isloggedon.php';
if ($isLoggedOn)
    header("location: userfile.php?username=" . $userLogin->getUserName() . "&path=" . $defaultpath."/".$loggedOnUser->getUserName());

include 'process/registerhandler.php';
?>


<link rel="stylesheet" href="styles/header.css" />
<link rel="stylesheet" href="styles/inside.css" />
<link rel="stylesheet" href="styles/navigate.css" />
<link rel="stylesheet" href="styles/form.css" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>DropBin</title>
    </head>
    <?php
    include 'templates/header.php';
    ?>
    <body>
        <!--
        -->
        <div class="paddingTop">
        </div>
        <div class="middle">
            <div class="paddingContent">
                &nbsp;
            </div>
            <div class="panel">
                <label class="headinfo">Register

                </label>
                <hr>

                <form id="register" nenctype="multipart/form-data" method="post" action="register.php" class="register">

                    <div>
                        <label>Username

                        </label>
                        <input type="text" name="username" id="username" class="regField"/>
                    </div>
                    <div>
                        <label>Password

                        </label>
                        <input  name="pass" id="pass" type="password" class="regField"/>
                    </div>
                    <div>
                        <label>Re-Password

                        </label>
                        <input  name="repass" id="repass" type="password" class="regField"/>
                    </div>
                    <div>
                        <span id="regCheck" ></span>
                        <input class="subButton" id="submitbutton" type="submit" name="register" value="Register"/>
                    </div>
                    <div class="info2">
                        <a href="index.php">Login</a> Here.
                    </div>
                </form>

            </div>
        </div>
    </body>
</html>